package com.javatom.notes.feign.service.fallback;

import com.javatom.notes.common.User;
import com.javatom.notes.common.model.BaseResponse;
import com.javatom.notes.feign.service.UserFeignHystrixFallBackOperatService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class UserFeignHystrixFallBack implements UserFeignHystrixFallBackOperatService {
    public BaseResponse<List<User>> getList() {
        log.error("错误了 降级处理 UserFeignHystrixFallBack");
        return null;
    }
}
